/*
 * 文 件 名:  ${tableName}Service.java
 * 版   权: Copyright www.${company}.com Corporation ${dateYear} 版权所有
 * 描     述:  <描述>
 * 修 改 人:  mingbao
 * 修改时间:  ${dateTime}
 * 跟踪单号: <跟踪单号>
 * 修改单号: <修改单号>
 * 修改内容: <修改内容>
 */
package com.${company}.${projectName}.service;

import java.util.List;

import com.${company}.${projectName}.model.${tableName}Model;
import com.teshehui.framework.util.page.Page;
import com.teshehui.supplier.model.SupplierBrandModel;
/**
 * <一句话功能简述>
 * <功能详细描述>
 * 
 * @author  mingbao
 * @version  [版本号, ${dateTime}]
 * @see  [相关类/方法]
 * @since  [产品/模块版本]
 */
public interface ${tableName}Service
{
    public void add${tableName}(${tableName}Model ${tableNameMin}Model)throws Exception;
    
    /**
     * 批量插入只支持mysql
     */
    public void add${tableName}List(List<${tableName}Model> ${tableNameMin}ModelList)throws Exception;

    public void update${tableName}ById(${tableName}Model ${tableNameMin}Model)throws Exception;

    public ${tableName}Model get${tableName}ById(${tableName}Model ${tableNameMin}Model)throws Exception;

    public long get${tableName}Count(${tableName}Model ${tableNameMin}Model)throws Exception;

    public List<${tableName}Model> get${tableName}(${tableName}Model ${tableNameMin}Model, Page page)throws Exception;

    public void deleteById(${tableName}Model ${tableNameMin}Model)throws Exception;
    
    public void deleteByIds(List<Long> ids)throws Exception;

}
